/// Author: QP
/// Version: 1.0
/// Date:2021/07/01
/// 费用章节表
Class HCC.SQL.Document.Payment Extends (%Persistent, %XML.Adaptor, HCC.SQL.Base) [ CompileAfter = (HCC.SQL.Base, HCC.SQL.Document.Payment.Consumable, HCC.SQL.Document.Payment.Blood, HCC.SQL.Document.Payment.TCM, HCC.SQL.Document.Payment.Medicine, HCC.SQL.Document.Payment.Treatment, HCC.SQL.Document.Payment.Diag, HCC.SQL.Document.Payment.General, HCC.SQL.Document.Payment.Total) ]
{

Parameter SectionCode = "48768-6";

Parameter SectionName = "PAYMENT SOURCES";

Parameter SectionCodeSystemOID = "2.16.840.1.113883.6.1";

Parameter SectionCodeSystem = "LOINC";

/// 文档编号 (同时作为Idkey)
Property DocumentNo As %String(XMLPROJECTION = "NONE");

Index IdDocNo On DocumentNo [ IdKey, Unique ];

/// 建立与HCC.SQL.Document.Header的外键
ForeignKey FKDocument(DocumentNo) References HCC.SQL.Document(IdKey);

/// 医疗费用支付方式代码
Property paymentWay As WS.DE.DE070000700 [ SqlFieldName = payment_way ];

/// 住院总费用
Property totalFee As HCC.SQL.Document.Payment.Total [ SqlFieldName = total ];

/// 综合医疗服务费
Property generalFee As HCC.SQL.Document.Payment.General [ SqlFieldName = gen ];

/// 诊断费
Property diagFee As HCC.SQL.Document.Payment.Diag [ SqlFieldName = diag ];

/// 治疗费
Property treatmentFee As HCC.SQL.Document.Payment.Treatment [ SqlFieldName = treat ];

/// 康复费类服务费
Property rehabilitationFee As WS.HSDE.HDSD0011055 [ SqlFieldName = rehab ];

/// 中医治疗费
Property TCMTreatmentFee As WS.HSDE.HDSD0011136 [ SqlFieldName = TCM_treat ];

/// 西药费
Property medicineFee As HCC.SQL.Document.Payment.Medicine [ SqlFieldName = med ];

/// 中药费
Property TCMFee As HCC.SQL.Document.Payment.TCM [ SqlFieldName = tcm ];

/// 血费
Property bloodFee As HCC.SQL.Document.Payment.Blood [ SqlFieldName = blood ];

/// 耗材
Property consumableFee As HCC.SQL.Document.Payment.Consumable [ SqlFieldName = cons ];

/// 其他费 
Property otherFee As WS.HSDE.HSDB0510130 [ SqlFieldName = other ];

/// 处方药品金额。《西药处方》费用章节特殊需要！！！
Property prescriptionFee As WS.DE.DE070000400 [ SqlFieldName = rx_fee ];

/// 使用中医诊疗设备标志。《中医住院病案首页》费用章节特殊需要！！！
Property TCMEquipment As WS.DE.DE060024400 [ SqlFieldName = TCM_eqp ];

/// 使用医疗机构中药制剂标志。《中医住院病案首页》费用章节特殊需要！！！
Property TCMMedication As WS.DE.DE060024300 [ SqlFieldName = TCM_med ];

/// 使用中医技术标志。《中医住院病案首页》费用章节特殊需要！！！
Property TCMTech As WS.DE.DE060024500 [ SqlFieldName = TCM_tech ];

/// 辨证施护标志。 《中医住院病案首页》费用章节特殊需要！！！
Property TCMSyndrome As WS.DE.DE060018000 [ SqlFieldName = TCM_syndrome ];


}
